<template>
  <div class="index">
    <tabbar></tabbar>
    <router-view></router-view>
  </div> 
</template>

<script setup lang="ts">
  // 引入store
  import { useBaseStore } from "../store"

  let baseStore = useBaseStore();

  //如果数据为空则获取数据
  if(!baseStore.CatData[0]){
    baseStore.getCarData();
  }
  
</script>

<style scoped>
  .index::-webkit-scrollbar{
    display: none;
  }
</style>
